import math
nums = [1,2]
def majorityElement(nums):
    numsLength=len(nums)
    countTar=math.floor(numsLength/3)+1
    print(countTar)
    countDict=dict()
    for num in nums:
        if num in countDict:
            countDict[num]+=1
        else:
            countDict[num]=1
    ans=[]
    for key in countDict:
        if countDict[key]>=countTar:
            ans.append(key)
    print(ans)
majorityElement(nums)